package practica2;

import weka.classifiers.lazy.IBk;
import weka.core.Instances;

public class GridSearch {
	
	public GridSearch(){}

	public void gSearch(Instances data) throws Exception{
		
		weka.classifiers.meta.GridSearch gs = new weka.classifiers.meta.GridSearch();
		gs.setClassifier(new IBk());
		try{
			gs.buildClassifier(data);			
		}catch(Exception e){
			ShowResults sr = new ShowResults();
			sr.printError(e);
		}
	}
}
